/*
 * @Author: your name
 * @Date: 2021-07-18 14:58:48
 * @LastEditTime: 2021-07-20 14:56:07
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \project-128-10\src\api\JXTK\questions.js
 */
import { createAPI } from '@/utils/request.js'
// 精品题库的上下架
export const choicePublish = data => createAPI(`/questions/choice/${data.id}/${data.publishState}`, 'post', data)

// 基础题库删除
export const remove = data => createAPI(`/questions/${data.id}`, 'delete', data)
// 基础题库详情
export const detail = data => createAPI(`/questions/${data.id}`, 'get', data)
